{template "content","header"}
<div class="position">当前位置：{catpos($catid)}</div>
<div class="container clearfix">
	<div class="baidu_share_cat_warp">
		<div class="baidu_share_cat">
			<!-- Baidu Button BEGIN -->
			<div id="bdshare" class="bdshare_t bds_tools get-codes-bdshare">
			<a class="bds_qzone"></a>
			<a class="bds_tsina"></a>
			<a class="bds_tqq"></a>
			<a class="bds_renren"></a>
			<a class="bds_t163"></a>
			<span class="bds_more">更多</span>
			<a class="shareCount"></a>
			</div>
			<script type="text/javascript" id="bdshare_js" data="type=tools&amp;uid=6740063" ></script>
			<script type="text/javascript" id="bdshell_js"></script>
			<script type="text/javascript">
			document.getElementById("bdshell_js").src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + Math.ceil(new Date()/3600000)
			</script>
			<!-- Baidu Button END -->
		</div>
	</div>
	<div class="jaz_cat_brandbox clearfix">
		<ul class="clearfix">
		{pc:get sql="select * from phpcms_category where parentid = $catid ORDER BY listorder ASC" num="15" page="$page" return="data1"} 
			{php $i= 0;}
			{php $i=count($data1);}
			{php $j = 0;}
			{loop $data1 $r1}
			{php $j++;}
			<li {if ($i%3!=0 && ($j > ($i-$i%3)))}class="noborder"{/if}>
				<div class="cat_img"><img src="{$r1['image']}" alt="{$r1['catname']}" title="{$r1['catname']}"/></div>
				<div class="cat_txt">
					<div class="cat_title"><a href="{$r1['url']}">{$r1['catname']}</a></div>
					{pc:content action="category" catid="$r1['catid']" num="3" siteid="$siteid" order="listorder ASC" return="data2"} 
					{loop $data2 $r2}
					<div>{short_catname($r2['catname'],$r1['catname'])} ({$r2['items']})</div>
					{/loop}
					{/pc}
				</div>
			</li>
			{/loop}
			{php unset($i);}
			{php unset($j);}
		{/pc}
		</ul>
		<div class="jaz_page">{$pages}</div>
	</div>
</div>
{template "content","footer"}